package com.mallcloud.mall.common.core.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 字典类型
 */
@Getter
@AllArgsConstructor
public enum DictTypeEnum {

	SYSTEM("1", "系统内置"),
	BIZ("0", "业务类"),
	;

	private String type;
	private String description;

	public static String getDecs(String type) {
		return Arrays.stream(values()).filter(x -> x.getType().equals(type)).findFirst().get().getDescription();
	}

}
